<template>
  <div>
    <van-nav-bar title="分润详情">
      <img
        src="~assets/image/arrow_left.png"
        alt=""
        slot="left"
        width="20"
        height="20"
        @click="leftClick"
      />
    </van-nav-bar>
    <div class="income">
      <div class="income-title">
        <span></span>
        <p>分润明细</p>
      </div>
      <p class="income-text-money">订单金额</p>
      <p class="income-money">
        ￥<span>{{ amount }}</span>
      </p>
      <div class="xian"></div>
      <div class="income-item">
        <p>刷卡人费率</p>
        <p>{{ orirate }}</p>
      </div>
      <div class="income-item">
        <p>刷卡人号码</p>
        <p>{{ oriphone }}</p>
      </div>
      <div class="income-item">
        <p>订单号</p>
        <p>{{ ordercode }}</p>
      </div>
      <div class="income-item">
        <p>备注</p>
        <p>{{ remark }}</p>
      </div>
      <p class="income-time font">订单日期 :{{ createTime }}</p>
      <hr />

      <div class="income-ite">
        <div class="income-left">
          <span></span>
          收益金额
        </div>
        <p class="income-money">
          ￥<span>{{ acqAmount }}</span>
        </p>
      </div>

      <p class="income-txt">(全民分享经济模式、推广越多、收益越高)</p>
    </div>
  </div>
</template>
<script>
export default {
  name: "IncomeDetailsItem",
  data() {
    return {
      amount: this.$route.params.amount,
      orirate: this.$route.params.orirate,
      oriphone: this.$route.params.oriphone,
      ordercode: this.$route.params.ordercode,
      remark: this.$route.params.remark,
      createTime: this.$route.params.createTime,
      acqAmount: this.$route.params.acqAmount,
    };
  },
  methods: {
    leftClick() {
      this.$router.back(-1);
    },
  },
};
</script>
<style  scoped>
.income {
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px #999;
}
.income-title {
  display: flex;

  margin-left: 20px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  letter-spacing: 1.2px;
}
.income-title span {
  display: inline-block;
  margin-right: 5px;
  width: 4px;
  height: 16px;
  background-color: #ff8f5f;
}
.income-text-money {
  text-align: center;
  margin-top: 30px;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 14px;
}
.income-money {
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}
.income-money span {
  font-size: 18px;
  color: #ff8f5f;
  margin-left: 2px;
  font-weight: 600;
}
.xian {
  margin-top: 50px;
  margin-bottom: 20px;
  border: 1px dashed #444;
  margin-left: 10px;
  margin-right: 10px;
}
.income-item {
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}
.income-time {
  margin-top: 50px;
  margin-left: 30px;
  font-size: 16px;
  color: #444;
}
.font {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}
hr {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  margin-right: 10px;
}
.income-txt {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  padding-bottom: 20px;
}
.income-txet {
  font-size: 16px;
}
.income-txet span {
  display: inline-block;
  margin-right: 5px;
  width: 4px;
  height: 16px;
  background-color: #ff8f5f;
}
.income-ite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 30px;
  margin-right: 30px;
}
.income-left {
  margin-top: 3px;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 16px;
}
.income-left span {
  display: inline-block;
  margin-right: 2px;
  width: 4px;
  height: 16px;
  background-color: #ff8f5f;
}
</style>